#include "Wordgroup.h"
#include <cstdlib>
#include <ctime>
using namespace std;

Wordgroup::Wordgroup()
{
}

Wordgroup::Wordgroup(vector<string> words){
	this->words = words;
	srand(time(NULL));
}

Wordgroup::~Wordgroup()
{
}

string Wordgroup::getRandom()
{
	return words[rand() % words.size()];
}
void Wordgroup::addWord(string word)
{
	words.push_back(word);
}